package com.feiyuan.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单信息
 * </p>
 *
 * @author Xupf
 * @since 2022-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AdminMenu对象", description="菜单信息")
public class AdminMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    private String menuPath;

    @ApiModelProperty(value = "菜单地址")
    private String menuUrl;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "菜单权限，多个以英文逗号隔开")
    private String menuPers;

    @ApiModelProperty(value = "菜单类型(0,目录;1,菜单;2,按钮)")
    private Integer menuType;

    @ApiModelProperty(value = "图标")
    private String menuIcon;

    @ApiModelProperty(value = "排序")
    private Integer menuSort;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<AdminMenu> children;

    @ApiModelProperty(value = "路由标题")
    private String menuTitle;

    @ApiModelProperty(value = "上级路由")
    private String parentIds;

    @TableField(exist = false)
    private List<String> perms;

}
